package cn.sinonet.sms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sinonet.sms.dao.ZJHKDao;
import cn.sinonet.sms.model.ZJHK;

@Service("zhjkManager")
public class ZJHKManagerImp extends GenericManagerImp<ZJHK, Long> implements
		ZJHKManager {

	ZJHKDao zhjkDao;

	public ZJHKDao getZhjkDao() {
		return zhjkDao;
	}

	@Autowired
	public void setZhjkDao(ZJHKDao zhjkDao) {
		this.dao = zhjkDao;
		this.zhjkDao = zhjkDao;
	}

	@Override
	public ZJHK saveZJHK(ZJHK zhjk) {
		return dao.save(zhjk);
	}

	public ZJHK loadByMessageAndPhone(String message, String phone, String time) {
		return (ZJHK) zhjkDao.loadByMessageAndPhone(message, phone, time);
	}
	
	
	public ZJHK loadByMessageAndPhone(String message, String phone) {
		return (ZJHK) zhjkDao.loadByMessageAndPhone(message, phone);
	}

}
